package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

public class Switch2 extends AtomicActor {

   public Switch2(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);
   }

   public void fire() throws IllegalActionException {   
       int a = 2;
       
       switch(a) {
           case 1: 
	   
	   case 2: 
	      int d = 3;
	      System.out.println(d + a);
	      
	   case 3: {
	      d = 3;
	      int x = d + a + 1;
	      System.out.println(x);	   
	   } break;
	   
	   case 4: {
	      System.out.println("4");	   
	   }

	   case 5: {
	       System.out.println("5");
	   } break;
       } 
       
       System.out.println(a);

   }
   
}
